package threaduse;
public class thrd01{
    public static void main(String[] args) throws InterruptedException {
        cat c = new cat();
        c.start();
        for(int i=0;i<400;i++){
            System.out.println("i");
            Thread.sleep(1000);
        }
    }
}
class cat extends Thread{
    int times=0;
    @Override
    public void run() {
        while(true){
            System.out.println("傻逼 ，我是傻逼"+(++times));
            try{
                Thread.sleep(1000);
            }catch(InterruptedException e){
                e.printStackTrace();
            }
            if(times==80){
                break;//线程退出
            }
        
        }
        
    }
}